import QtQuick 2.2

Rectangle {
    property bool isclick: false
    width: 115; height:50
    border.color: "#1ABCBD"; border.width: 2

    MouseArea{
        onPressed:
        {
            if(!isclick)
            {
                parent.color = "#7F7F7F"
                parent.border.color = "#7F7F7F"
                isclick = !isclick
            }
            else
            {
                parent.color = "white"
                parent.border.color = "#1ABCBD"
                isclick = !isclick
            }
        }
        anchors.fill: parent
    }
    Image {
        id: pic
        source: "../images/setting.png"
        anchors.centerIn: parent
    }

}
